import request from "./request.js"
// 注册
export const reg = ({username,password,mobile,code})=> request('/api/user/register',{username,password,mobile,code})
// 发送短信验证码
export const sendSms = (mobile,event)=>request('/api/sms/send',{mobile,event})
// 手机号登录
export const mobileLogin = ({mobile,captcha})=>request('/api/user/mobilelogin',{mobile,captcha})
// 密码登录
export const pwdLogin = ({account,password})=>request('/api/user/login',{account,password})

// 退出登录
export const logout = ()=>request('/api/user/logout')

// 首页展示
export const getIndex = ()=>request('/api/index/index')